package co.yixiang.mall.common.feign;


import co.yixiang.common.core.api.ApiResult;
import co.yixiang.common.core.constant.ServiceNameConstants;
import co.yixiang.mall.common.customer.domain.YxStoreCustomer;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(contextId = "remoteMemberUserService", value = ServiceNameConstants.MALL_SERVICE)
public interface RemoteCustomerService {

    @GetMapping(value = "/api/yxStoreCustomer/getCustomers")
    ApiResult<List<YxStoreCustomer>> getCustomers();
}
